/**
 * 
 */
package hanto.studentdlally.common;

import hanto.util.HantoCoordinate;
import hanto.util.HantoPieceType;
import hanto.util.HantoPlayerColor;

/**
 * @author Doug
 * @version 1
 *
 */
public class HantoPiece {
	private final HantoPlayerColor color;
	private final HantoPieceType type;
	private HantoCoordinate coordinate;
	
	/**
	 * @param color color of this piece
	 * @param type type of this piece
	 * @param coordinate location of this piece (null if not placed)
	 */
	public HantoPiece(HantoPlayerColor color, HantoPieceType type,
			HantoCoordinate coordinate) {
		this.color = color;
		this.type = type;
		this.coordinate = Coordinate.generateCoordinate(coordinate);
	}

	/**
	 * @return the color
	 */
	public HantoPlayerColor getColor() {
		return color;
	}

	/**
	 * @return the type
	 */
	public HantoPieceType getType() {
		return type;
	}

	/**
	 * @return the coordinate
	 */
	public HantoCoordinate getCoordinate() {
		return coordinate;
	}

	/**
	 * @param coordinate the coordinate to set
	 */
	public void setCoordinate(HantoCoordinate coordinate) {
		this.coordinate = Coordinate.generateCoordinate(coordinate);
	}
	
	
	

}
